package gscrapper.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

public class SonyGameInfo {
	private static SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
	
    private String title;
    private String description;
    private String publisher;
    private Date purchased;
    private Date expiration;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Date getPurchased() {
        return purchased;
    }

    public String getPurchasedAsString() {
        return dateFormat.format(getPurchased());
    }

    public void setPurchased(Date purchased) {
        this.purchased = purchased;
    }

    public Date getExpiration() {
        return expiration;
    }

    public String getExpirationAsString() {
        return (expiration == null ? "" : dateFormat.format(getExpiration()));
    }

    public void setExpiration(Date expiration) {
        this.expiration = expiration;
    }
}
